<a href="javascript:tinyMCEPopup.editor.execCommand('mceInsertContent', false, '{TAG:FORM:{VAR:ID}}');tinyMCEPopup.close();">{VAR:NAME}</a>